const FocusModel = require("./model/focus");

const focus = new FocusModel({
    title: "    我是一个国际新闻    ",
    pic: "http://xxx.com.x.png",
    redirect: "www.baidu.com"
})

focus.save((err) => {
    if (err) {
        console.log(`err`, err);
        return;
    }
    FocusModel.find({}, (error, data) => {
        if (error) {
            console.log(`error`, error);
            return;
        }
        console.log(`data`, data);
    })
})